﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;

namespace Aliyeye.Car.Net.WebService
{
    /// <summary>
    /// Summary description for BillingDetailsService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class BillingDetailsService : BaseWebService
    {
        private BLL.BillingDetails Bll = new BLL.BillingDetails();

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Exists(int BillingDetailsID)
        {
            return Bll.Exists(BillingDetailsID);
        }


        [SoapHeader("soapHeader")]
        [WebMethod]
        public int Add(Model.BillingDetails model)
        {
            return Bll.Add(model);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Update(Model.BillingDetails model)
        {
            return Bll.Update(model);
        }
       
        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool Delete(int BillingDetailsID)
        {

            return Bll.Delete(BillingDetailsID);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public bool DeleteList(string BillingDetailsIDlist)
        {
            return Bll.DeleteList(BillingDetailsIDlist);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public Model.BillingDetails GetModel(int BillingDetailsID)
        {
            return Bll.GetModel(BillingDetailsID);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetList(string strWhere)
        {
            return Bll.GetList(strWhere);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetListTop(int Top, string strWhere, string filedOrder)
        {
            return Bll.GetList(Top, strWhere, filedOrder);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public List<Model.BillingDetails> GetModelList(string strWhere)
        {
            return Bll.GetModelList(strWhere);
        }

        [SoapHeader("soapHeader")]
        [WebMethod]
        public DataSet GetAllList()
        {
            return Bll.GetAllList();
        }
    }
}
